<?php

/**
 * 按照表名获取字段
 */
namespace ServS;
use think\Db;
class DbConf{

	/**
	 * 获取字典集
	 */
	public static function getconf($name){
		$config = Db::query("SELECT *  FROM `ys_dic_config` WHERE name = '$name' ");
		$field = [];
	 	foreach ($config as $key => $value) {
	 		array_push($field, $value);
	 	}
	 	return $field;
	}
		

}